<div class="layuimini-container">
    <div class="layuimini-main" id="app">

        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li class="layui-this">网站设置</li>
                <li>LOGO配置</li>
                <li>上传配置</li>
                {foreach $group as $value}
                <li>{$value['name']}</li>
                {/foreach}
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    {include file="system/config/site" /}
                </div>
                <div class="layui-tab-item">
                    {include file="system/config/logo" /}
                </div>
                <div class="layui-tab-item">
                    {include file="system/config/upload" /}
                </div>
                {foreach $group as $value}
                <div class="layui-tab-item">
                    <form id="app-form" class="layui-form layuimini-form">
                        <input type="hidden" name="group" value="{$value['identification']}">
                        {foreach $value['child'] as $values}
                        {if $values['formtype']=='input'}
                            {include file="layout/form/input" /}
                        {elseif($values['formtype']=='textarea')}
                            {include file="layout/form/textarea" /}
                        {elseif($values['formtype']=='radio')}
                            {include file="layout/form/radio" /}
                        {elseif($values['formtype']=='checkbox')}
                            {include file="layout/form/checkbox" /}
                        {elseif($values['formtype']=='select')}
                            {include file="layout/form/select" /}
                        {elseif($values['formtype']=='switch')}
                            {include file="layout/form/switch" /}
                        {elseif($values['formtype']=='datetime')}
                            {include file="layout/form/datetime" /}
                        {elseif($values['formtype']=='editor')}
                            {include file="layout/form/editor" /}
                        {else}
                            {include file="layout/form/input" /}
                        {/if}
                        {/foreach}
                        <div class="hr-line"></div>
                        <div class="layui-form-item text-center">
                            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.config/save" data-refresh="false">确认</button>
                            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
                        </div>
                    </form>
                </div>
                {/foreach}

            </div>
        </div>
    </div>
</div>